{{define "admin/sidebar.html"}}
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                {{if gt (len .user.AvatarUrl) 0}}
                <img src="{{.user.AvatarUrl}}" class="img-circle" alt="User Image">
                {{else}}
                <img src="/static/libs/AdminLTE/img/avastar.jpg" class="img-circle" alt="User Image">
                {{end}}
            </div>
            <div class="pull-left info">
                <p>{{.user.Email}}</p>
                <!--<a href="#"><i class="fa fa-circle text-success"></i> Online</a>-->
            </div>
        </div>
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">MAIN NAVIGATION</li>
            <li class="active">
                <a href="/admin/index">
                    <i class="fa fa-dashboard"></i> <span>总览</span>
                </a>
            </li>


            <li class="treeview">
                <a href="#">
                    <i class="fa fa-th"></i>
                    <span>班级</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>

                <ul class="treeview-menu">
                    <li><a href="/admin/seeclass"><i class="fa fa-circle-o"></i> 查看班级</a></li>
                    <li><a href="/admin/managerclass"><i class="fa fa-circle-o"></i> 管理班级</a></li>
                </ul>
            </li>


            <li class="treeview">
                <a href="#">
                    <i class="fa fa-laptop"></i>
                    <span>测试</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>

                <ul class="treeview-menu">
                    <li><a href="/admin/getexams"><i class="fa fa-circle-o"></i> 查看小测</a></li>
                    <li><a href="/admin/managerexam"><i class="fa fa-circle-o"></i> 管理小测</a></li>
                </ul>
            </li>

            <li class="treeview">
                <a href="#">
                    <i class="fa fa-folder"></i>
                    <span>公告</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>

                <ul class="treeview-menu">
                    <li><a href="/admin/seenotice"><i class="fa fa-circle-o"></i> 查看公告</a></li>
                    <li><a href="/admin/managernotice"><i class="fa fa-circle-o"></i> 管理公告</a></li>
                </ul>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
{{end}}